#ifndef LOGFILE_H
#define LOGFILE_H

#include <stdio.h>
#include <stdlib.h>
#include <QtMessageHandler>
#include <QString>

class logFile
{
public:
    logFile();

    static void closeLogFile()
    {
        fclose(g_log_fp);
    }

    static void myMessageOutput(QtMsgType type,
                                const QMessageLogContext &conttext,
                                const QString &msg);

    static FILE *g_log_fp;
};

#endif // LOGFILE_H
